<template>
  <div class="settings-container">
    <h2>系统设置</h2>
    <el-form label-width="120px">
      <el-form-item label="OCR路径">
        <el-input v-model="ocrPath" />
      </el-form-item>
      <el-form-item label="OCR端口">
        <el-input-number v-model="ocrPort" :min="1000" :max="9999" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="saveSettings">保存设置</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const ocrPath = ref('E:\\Umi-OCR_Paddle_v2.1.5\\Umi-OCR.exe')
const ocrPort = ref(1224)

function saveSettings() {
  // 保存设置逻辑
}
</script>

<style scoped>
.settings-container {
  padding: 20px;
}
</style>